<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>代码生成</title>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <script type="text/javascript" src="../../common/miniuiInit.js"></script>
    <script type="text/javascript" src="../../common/common.js"></script>
    <script type="text/javascript" src="generateCode.js"></script>
    <style>
        body {
            font-size: 12px;
            font-family: Tahoma, Arial, Helvetica, Sans-serif;
        }

        .tdRight {
            padding-right: 15px;
        }

        .subTable th {
            border: 1px solid #A5ACB5
        }

        .subTable td {
            border: 1px solid #A5ACB5
        }

        .subTable input {
            border: none
        }

        .subTable select {
            border: none
        }
    </style>

</head>
<body style="margin:0;padding:0px;border:0;width:100%;height:100%;">
<div class="mini-splitter" style="width:100%;height:100%;">
    <div size="250" showCollapseButton="true" style="padding:5px;">
        <select id="sources" onchange="sourceselect()"></select>
        <table cellSpacing="0" cellPadding="0" style="width:100%;" border="0">
            <tr>
                <td height="30" style="border-bottom: solid 1px #eee;">
                    系统表
                </td>
            </tr>
        </table>
        <div class="mini-fit" style="width:100%;height:100%;">
            <ul id="tree" class="mini-tree"   style="width:100%;height:100%;"
                showTreeIcon="true" textField="name" idField="id" value="" onNodeclick="treeselected" >
            </ul>
        </div>
    </div>
    <div showCollapseButton="true" style="padding:5px;overflow:auto;">
        <!-- 编辑树 -->
        <div id="edit_node" style="height:100%;overflow:auto;display:none;">
            <form id="form1">
                <table cellSpacing="0" cellPadding="0" style="width:100%;font-size:12px;font-family:Verdana, Arial, Helvetica, AppleGothic, sans-serif;" border="0">
                    <tr height="30">
                        <td colspan="3" style="border-bottom: solid 1px #eee;">
                            <div class="mini-toolbar" style="padding:0px;" id="sBtn">
                                <table style="width:100%;">
                                    <tr>
                                        <td style="width:100%;">
                                            <span> 代码生成</span>
                                        </td>
                                        <td style="white-space:nowrap;">
                                            &nbsp;<a class="mini-button" iconCls="icon-save" plain="true" onclick="editOrgData">保存</a>
                                        </td>
                                    </tr>
                                </table>
                            </div>
                        </td>
                    </tr>
                    <tr height="30" style="margin-top:2px;">

                        <td style="heigh:30px;width:120px;text-align:right;">
                            业务层名：
                        </td>
                        <td colpsan="2" class="tdRight">
                            <input id="serviceName" class="mini-textbox" name="generate.serviceName" style="width:100%;"/>
                            <input class="mini-Hidden" id="table" name="generate.tableName"/>
                        </td>
                    </tr>
                    <tr height="30" style="margin-top:2px;">
                        <td style="heigh:30px;text-align:right;">
                            实体名：
                        </td>
                        <td colpsan="2" class="tdRight">
                            <input class="mini-textbox" name="generate.entityName" id="entityName" style="width:100%;"/>
                        </td>
                    </tr>
                    <tr height="30" style="margin-top:2px;">
                        <td style="heigh:30px;text-align:right;">
                            数据层名：
                        </td>
                        <td colpsan="2" class="tdRight">
                            <input class="mini-textbox" name="generate.daoName" id="daoName" style="width:100%;"/>
                        </td>
                    </tr>
                    <tr height="30" style="margin-top:2px;">
                        <td style="heigh:30px;text-align:right;">
                            实体ID名：
                        </td>
                        <td colpsan="2" class="tdRight">
                            <input class="mini-textbox" name="generate.entityId" id="entityId" style="width:100%;"/>
                        </td>
                    </tr>
                    <tr height="30" style="margin-top:2px;">
                        <td style="heigh:30px;text-align:right;">
                            控制层名：
                        </td>
                        <td colpsan="2" class="tdRight">
                            <input class="mini-textbox" name="generate.actionName" id="actionName" style="width:100%;"/>
                        </td>
                    </tr>
                    <tr height="30" style="margin-top:2px;">
                        <td style="heigh:30px;text-align:right;">
                            模块名：
                        </td>
                        <td colpsan="2" class="tdRight">
                            <input class="mini-textbox" name="generate.title" id="title" style="width:100%;"/>
                        </td>
                    </tr>
                    <tr height="30" style="margin-top:2px;">
                        <td style="heigh:30px;text-align:right;">
                            提示名：
                        </td>
                        <td colpsan="2" class="tdRight">
                            <input class="mini-textbox" name="generate.gridTitle" id="gridTitle" style="width:100%;"/>
                        </td>
                    </tr>
                    <tr>
                        <td style="heigh:30px;text-align:right;">&nbsp;</td>
                        <td colspan="2" id="listName" class="tdRight"></td>
                    </tr>
                    <tr style="margin-top:2px;">
                        <td style="heigh:30px;text-align:right;">&nbsp;</td>
                        <td colpsan="2" class="tdRight" style="height:60px;">
                            <input type="checkbox" name="generate.selectGenerate" value="1">控制层&nbsp;
                            <input type="checkbox" name="generate.selectGenerate" value="2">服务层&nbsp;
                            <input type="checkbox" name="generate.selectGenerate" value="3">数据层&nbsp;
                            <input type="checkbox" name="generate.selectGenerate" value="4">实体层&nbsp;
                            <input type="checkbox" name="generate.selectGenerate" value="5">Sql代码&nbsp;
                            <input type="checkbox" name="generate.selectGenerate" value="6">列表页&nbsp;
                            <input type="checkbox" name="generate.selectGenerate" value="7">编辑页&nbsp;
                            <!--
                            <input type="checkbox" name="generate.selectGenerate" value="8">修改页&nbsp;
                            <input type="checkbox" name="generate.selectGenerate" value="9">详情页&nbsp;

                            <input type="checkbox" name="generate.selectGenerate" value="10">菜单&nbsp;-->
                            <input type="checkbox" name="generate.selectGenerate" value="11">配置xml&nbsp;
                        </td>
                    </tr>

                </table>
            </form>
        </div>
    </div>
</div>
</body>
</html>
